/* 移动端布局，移动端是占满全屏的 */
html,body{
    width: 100%;
    height: 100%;
}
body{
    display: flex;
    flex-direction: column;
}
/* header区域的样式开始 */
header{
    width: 100%;
    height: 3.67rem;/* 88px / 2  */
    background: #0dc441;
    display: flex;
    justify-content: center;
    align-items: center;
}
header span{
    width: 5rem;
    height: 2rem;
    font-size: 1rem;
    text-align: center;
    line-height: 2rem;
}
header span:nth-child(1){
    background: #64d985;
    border-radius: 0.83rem 0 0 0.83rem;
    color: #fff;
}
header span:nth-child(2){
    background: #3dd067;
    border-radius: 0 0.83rem 0.83rem 0;
    color: #a3e9b7;
}
/* 导航区域 */
nav{
    width: 100%;
    height: 2.92rem;
    /* background: red; */
    border-bottom: 1px solid #d9d9d9;
    display: flex;
    justify-content: space-between;
}
nav li{
    width: 8.33rem;
    height: 2.92rem;
    text-align: center;
    line-height: 2.92rem;
    box-sizing: border-box
}
nav li:hover,nav li:focus{
    color: #0dc441;
    border-bottom:0.21rem solid #0dc441; 
}
/* 主体内容 */
main{
    width: 100%;
    flex:1; /* 自适应 */
    /* background:pink; */
    overflow: auto;
}
article{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 0.33rem;
}
article img{
    width: 100%;
}
figure{
    width: 49%;
    height: 15.58rem;
    margin-bottom: 0.42rem;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
figcaption{
    text-indent: 1rem;
    width: 100%;
    height: 2.5rem;
    border-top: 1px solid #ccc;
    line-height: 2.5rem;
    font-size: 1rem;
}
/* 底部 */
footer{
    width: 100%;
    height: 3.67rem;
    /* background: orange; */
    display: flex;
}
aside{
    width:20%;
    height: 3.67rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}
aside span{
    font-size: 1rem;
}
aside:hover,aside:focus{
    color: #0dc441
}
aside:nth-child(3){
    position: relative;
}
aside img{
    width: 100%;
    position: absolute;
    bottom: 0
}
/* 媒体查询改变不同设备下的html文本大小 */
@media all and (max-width:320px){
    html{
        font-size: 12px;
    }
}
@media all and (min-width:321px) and (max-width:375px){
    html{
        font-size: 14px
    }
}
@media all and (min-width:376px){
    html{
        font-size: 16px;
    }
}